package com.nkbh.sevenday.myhttp.http;

import java.util.Map;

/**
 * Created by pixel on 2018/4/3
 * 网络请求方式的接口.
 */

public interface IHttpClient {

    /**
     * get的异步请求
     * @param url
     * @param callBack
     */
    public void get(String url, CallBackResponse callBack);


    /**
     * post请求
     * @param url
     * @param map
     * @param callBack
     */
    public void post(String url, Map<String, String> map, CallBackResponse callBack);

    public void post(String url, String name, String pwd, final CallBackResponse callBack);

    public void postUpload(String url, String filePath, String name, String fileType, CallBackResponse callBack);

}
